Xbasic
MathUtil::DecimalFloor Method
Syntax
.Floor as C (one as C)
Arguments
- oneCharacter
The value to round.
Returns
- resultCharacter
Returns the closest integer toward negative infinity. If one is a positive value, returns the value with any fractional component truncated. If one is a negative value, the value is round down to the next closest negative value.
Description
Rounds a specified number to the closest integer toward negative infinity.
Example
? MathUtil::Decimal::Floor("12.34") = "12" ? MathUtil::Decimal::Floor("12") = "12" ? MathUtil::Decimal::Floor("-12.34") = "-13"